package com.lixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用于存储用户的动态内容
 * </p>
 *
 * @author lixin
 * @since 2023-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("Posts")
public class Posts implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 动态唯一标识符（主键）
     */
      @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 发布动态的用户ID
     */
    private Integer userId;

    /**
     * 动态内容
     */
    private String content;

    /**
     * 动态发布时间
     */
    private Date timestamp;

    private String imageUrl;
}
